import request from '/@/utils/request';

const evaPath = '/eva';

// 查询因子得分解释列表
export function listExplanation(query: object) {
  console.log('listExplanation', query)
  return request({
    url: evaPath + '/explanation/page',
    method: 'get',
    params: query
  })
}

// 查询因子得分解释详细
export function getExplanation(id: string) {
  return request({
    url: evaPath + '/explanation/' + id,
    method: 'get'
  })
}

// 新增因子得分解释
export function addExplanation(data: object) {
  return request({
    url: evaPath + '/explanation',
    method: 'post',
    data: data
  })
}

// 修改因子得分解释
export function updateExplanation(data: object) {
  return request({
    url: evaPath + '/explanation',
    method: 'put',
    data: data
  })
}

// 删除因子得分解释
export function delExplanation(id: string) {
  return request({
    url: evaPath + '/explanation/' + id,
    method: 'delete'
  })
}
